﻿<div class="panel panel-default padding-empty">
    <div class="panel-body padding-empty">
        <ol class="breadcrumb margin-empty">
            <li class="breadcrumb-color"><i class="fa fa-home"></i>&nbsp;主页</li>
            <li><a href="#/signIn/planList" class="breadcrumb-link">签到管理</a></li>
            <li class="active">{{planName}} - 签到管理</li>
        </ol>
    </div>
</div>

<div class="panel panel-default">
    <!--<div class="panel-heading">
        <h3 class="modal-title">
            <i class="fa fa-sign-in"></i>
            {{planName}} - 签到管理
            &nbsp;
            <button class="btn btn-turquoise btn-xs" onclick="javascript: history.go(-1);" title="返回上一页" style="margin-bottom: 0;">
                <i class="fa fa-chevron-left"></i>
            </button>
        </h3>
    </div>-->

    <div class="panel-body">
        <form class="form-inline">
            <div class="form-group" ng-if="examMode!=3">
                <label class="control-label">场次：</label>
                <select ng-model="curScene" ng-options="item.examSceneName for item in sceneList" class="form-control selectMaxWidth" ng-change="changeScene(curScene)"></select>
            </div>

            <div class="form-group" ng-if="examMode!=3">
                <label class="control-label">考场：</label>
                <select ng-model="curRoom" ng-options="item.examRoomName for item in roomList" class="form-control selectMaxWidth" ng-change="changeRoom(curRoom)"></select>
            </div>

            <div class="form-group">
                <label class="control-label">签到状态：</label>
                <select ng-model="curStatus" ng-options="item.statusName for item in statusList" class="form-control selectMaxWidth"></select>
            </div>

            <div class="form-group">
                <input ng-model="curParams" class="form-control" maxlength="30" placeholder="准考证号或学生姓名" />
            </div>

            &nbsp;
            &nbsp;

            <button class="btn btn-turquoise" ng-click="query();" style="margin-bottom: 0;">
                <i class="fa fa-search"></i>
                搜索
            </button>
        </form>

        <hr />
        <button class="btn btn-turquoise" ng-click="automatic();">
            系统识别
        </button>

        <i class="fa fa-question-circle fa-lg text-info" style="font-size: x-large; cursor: pointer;" ng-click="help();" title="系统帮助"></i>

        <br />
        <table style="margin-bottom: 0;" class="table responsive table-bordered table-hover text-center">
            <thead>
                <tr class="active">
                    <th>#</th>
                    <th>考生姓名</th>
                    <th>考生性别</th>
                    <th>证件号</th>
                    <th>准考证号</th>
                    <th>签到结果</th>
                    <th>签到时间</th>
                    <th>签到理由</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="item in list">
                    <!--序号-->
                    <td class="text-center">{{$index+1}}</td>
                    <!--考生姓名-->
                    <td>{{item.ExamineeName}}</td>
                    <!--考生性别-->
                    <td ng-switch on="item.Sex">
                        <span ng-switch-when="1">男</span>
                        <span ng-switch-when="2">女</span>
                    </td>
                    <!--证件号-->
                    <td>{{item.CertificateNo}}</td>
                    <!--准考证号-->
                    <td>{{item.ExamCardNo}}</td>
                    <!--签到结果-->
                    <td>
                        <div ng-show="item.todayIDCard" ng-switch on="item.IDCardResult">
                            <span ng-switch-when="0">未签到</span>
                            <span ng-switch-when="1">系统签到</span>
                            <span ng-switch-when="2">人工签到</span>
                        </div>
                        <div ng-hide="item.todayIDCard">
                            未签到
                        </div>
                    </td>
                    <!--签到时间-->
                    <td>
                        <span ng-show="item.todayIDCard">{{item.IDCardTime | formatDate | date: 'yyyy-MM-dd HH:mm:ss'}}
                        </span>
                    </td>
                    <!--签到理由-->
                    <td>
                        <span ng-show="item.todayIDCard">{{item.IDCardReason}}
                        </span>
                    </td>
                    <!--人工确认-->
                    <td>
                        <button class="btn btn-turquoise btn-sm" ng-click="manual(item);" ng-hide="item.todayIDCard">
                            人工签到
                        </button>
                        <span ng-show="item.todayIDCard" class="text-success">
                            <i class="fa fa-check"></i>
                            已签到
                        </span>
                    </td>
                </tr>
            </tbody>
        </table>

        <h3 class="text-center" ng-show="list.length <= 0">
            <img src="//openexamcdn.open.com.cn/openexam/static/App/images/nodata.jpg" alt="" />
            <!--<small>对不起，没有相关数据！</small>-->
        </h3>
    </div>
</div>

<script src="//openexamcdn.open.com.cn/openexam/static/App/vendor/webcam/jquery.webcam.min.js"></script>
